package com.example.demo.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import com.example.demo.service.RoleService;
import com.example.demo.dao.RoleMapper;
import com.example.demo.bean.Role;

@Service
public class RoleServiceImpl implements RoleService {

	@Autowired
	private RoleMapper roleMapper;

	public java.util.List<Role> queryRoleByPage (java.util.Map<String, Object> params){
		return this.roleMapper.selectRoleByPage(params);
	}

	public int queryRoleCount (java.util.Map<String, Object> params){
		return this.roleMapper.selectRoleCount(params);
	}

	public Role queryRoleOne (java.util.Map<String, Object> params){
		return this.roleMapper.selectRoleOne(params);
	}

	public int updateRole (java.util.Map<String, Object> params){
		return this.roleMapper.updateRole(params);
	}

	public int deleteRole (java.util.List<String> idList){
		return this.roleMapper.deleteRole(idList);
	}

	public int insertRole (java.util.Map<String, Object> params){
		return this.roleMapper.insertRole(params);
	}

}